package com.fly.system.service;

import com.fly.common.model.SysUserModel;
import com.fly.common.model.ZtreeModel;
import com.fly.system.model.SysMenuModel;
import com.fly.system.model.SysRoleMenuModel;
import com.fly.system.model.SysRoleModel;

import java.util.List;
import java.util.Set;

public interface SysRoleService {

    List<SysRoleModel> findPage(SysRoleModel model);

    int saveModel(SysRoleModel model);

    SysRoleModel findModelById(Long id);

    List<SysRoleMenuModel> findRoleMenuByRoleId(Long id);

    int editModelById(SysRoleModel model);

    int removeModelById(SysRoleModel model);

    Set<String> findRoleNameByUserId(Long userId);
    Set<String> findMenuPmsByUserId(Long userId);

}
